WASHINGTON  The White House on Monday warned State Department officials that they should leave their jobs if they did not agree with President Trump’s agenda, an extraordinary effort to stamp out a wave of internal dissent against Mr. Trump’s temporary ban on entry visas for people from seven predominantly Muslim countries.