The House passed a bill that would reenact a gun rights law a federal court previously struck down as unconstitutional.