The legislation will toughen background checks for the youngest gun buyers, keep firearms from more domestic violence offenders and help states put in place laws that make it easier for authorities to take weapons from people adjudged to be dangerous.