President Volodymyr Zelenskyy endorsed the head of the state energy company as Ukraine's new prime minister on Wednesday and lawmakers said he planned to replace his defence minister at a pivotal juncture in the war with Russia.