Gov. Dannel P. Malloy, who four months ago broke the news to shocked parents that their children had been slaughtered in a Connecticut elementary school, signed into law Thursday sweeping new restrictions on weapons and large capacity ammunition magazines similar to the ones used by the man who gunned down 20 child and six educators in the massacre.