Miliband, who has been Labour's net-zero champion, was moved to Foreign Secretary in Andy Burnham's Cabinet reshuffle.