The ruling came Friday afternoon.