The vote gives the besieged agency responsible for responding to a national surge in gun violence a permanent leader after the president’s first nominee failed to win confirmation.