The back-to-back mass shootings in Texas and Ohio—one of which authorities are investigating as a possible hate crime—thrust back into the national spotlight the debate over gun-control laws, which is likely to dominate the presidential campaign in coming days even as legislation faces steep odds of passing.

Democrats on Sunday criticized Senate Republicans for opposing legislation they said would help prevent mass shootings and accused President Trump of using rhetoric that helped incite the violence. Republicans expressed...