Ukrainian MPs have passed a resolution reaffirming President Volodymyr Zelenskiy's legitimacy during a second vote.