The president’s anti-immigrant rhetoric and gun control views come under scrutiny after two shootings.