Assault weapons ban doesn't violate 2nd Amendment, judge says