Edit: @MarcLarcher gave you one answer: Look at Layout Options > Note Spacing and increase the setting for “Only justify final system in flow” so that it’s larger than the fill percentage of your last system.
If you don’t like that solution, then start with your second example, and then in Engrave mode select the systems right handle with the Note Spacing tool and use the left arrow with a modifier (Alt/Opt, Shift+Alt/Opt, Ctrl/Cmd+Alt/Opt) to move it to the left.