The president made an error.
He should have appointed him Secy of State. This would get his resignation from the Senate.
And then fire him.