Legislation designed to improve background checks for gun purchases ran into new hurdles, raising doubts about lawmakers’ ability to act in the wake of the Florida school shooting.