The ruling marks the latest flashpoint in the ongoing conflict between Texas state authorities and federal officials over border enforcement efforts.