Republicans defended the president’s ban on entry for people from seven Muslim-majority countries and his decision to fire the acting attorney general, Sally Yates, on Monday night for refusing to enforce it.