It would be odd to say The teacher told the class that water froze at 32 degrees Fahrenheit, which seems to suggest that perhaps it no longer does; one should violate the backshifting rule here and say The teacher told the class that water freezes at 32 degrees Fahrenheit.