But the court said Gov. Greg Abbott did not have the authority to order such investigations, acknowledging they could cause ?irreparable harm.?