The president blamed Democrats for loopholes causing families to be separated and accused the media of supporting smugglers.