The dismissals came just hours after Trump's inauguration and raises questions of the president's legal authorities.