A U.S. official said Flynn’s departure, coupled with Russia’s aggression in Ukraine and Syria and Republican congressional opposition to removing sanctions on Russia, removes Trump’s most ardent advocate of taking a softer line toward Putin.