In 2004, the Florida legislature was preparing to intervene and name a slate of electors when the Supreme Court ruled against Gore in the selective recount.
I am not aware of a specific case on this topic, but I believe the USSC would be hard pressed to overturn a legislative vote on it.
2000, was it not?