A federal judge acknowledged Tuesday that Florida’s contentious teacher evaluation law is unfair, but he still ruled that there was no legal reason to overturn it.

Seven teachers from three counties as well as several teacher unions contended that the 2011 law tying teacher evaluations and pay to standardized testing was unconstitutional.