President Donald Trump notched two victories on Thursday as he pushed to get his top officials in place. He also faced new legal challenges.