A federal judge has thrown out New York state’s challenge to a federal tax law enacted by Congress nearly two years ago to cap the amount taxpayers can deduct in state and local taxes, a move that’s been criticized by Gov. Andrew Cuomo.

U.S. District Judge J. Paul Oetken of the Southern District of New York wrote in a decision handed down Monday that the change was within the authority of Congress.