There was actually a case where the court of appeals held these types of tax breaks to violate the commerce clause, but in 2006, the Supreme Court dismissed the case on a procedural issue (that the taxpayers did not have standing). See the below article for more.