Lawmakers were largely divided along party lines over President Donald Trump's deployment of the National Guard to various U.S. cities.