One bill would bar people younger than 21 from possessing or purchasing semiautomatic rifles and shotguns.