The bills require background checks for private and online gun sales and ban ammunition magazines that hold more than 15 rounds.