The NCAA and the four major professional sports leagues went to court Tuesday morning to try to stop New Jersey from allowing sports betting, saying it would violate federal law and would threaten the sanctity of the game.