Days after a federal court ordered a developer to return a condo deposit to a would-be-buyer for violating a state law, a bill was quickly amended to make the developer’s behavior legal and allow it to keep the deposit.

The amendment as part of a broader condo bill is set to become law on June 1, unless Gov. Charlie Crist vetoes it. The proposed change is one of many amendments packed into Senate Bill 1196, which would overhaul the Florida statutes that govern condominiums.