Border Patrol Union: Ruling could harm agents