Agency reverses endangered species rulings