Any building or structure that is listed on the National Register of Historic Places and is transferred from state ownership to another public agency shall not be demolished, destroyed, or significantly altered, except for restoration to preserve or enhance its historical values, without the prior approval of the Legislature by statute. This section applies to any building or structure transferred from state ownership to another public agency after January 1, 1987.