A federal judge on Tuesday ruled that a Missouri state law which aimed to invalidate many federal gun regulations is unconstitutional, handing the U.S. Justice Department a victory in its bid to get the law invalidated.