In a potentially far-reaching decision, an appeals court struck down a state law restricting a police officer from paying a law firm to help her pursue workers’ compensation insurance benefits.

The 26-page decision on Wednesday by the First District Court of Appeal said it was unconstitutional for police officer Martha Miles and her union, the Fraternal Order of Police, to be prohibited from paying a retainer and hourly fees for legal representation in a workers’ compensation dispute with the city of Edgewater and an insurance carrier.