Gov. Ron DeSantis signed a bill Thursday to prohibit the building of golf courses, hotels and other amenities on state parks, putting an end to a nearly yearlong controversy that united people from across the state and political spectrum in support of preserving public land.

The Florida Senate website showed the bill, House Bill 209, called the “State Park Preservation Act,” as having been signed just before 5 p.m. The governor’s office did not immediately announce the signing, nor did his office respond to an email requesting comment.