A judge temporarily blocked Riviera Beach from demolishing its Barracuda Bay Aquatic Center to make way for a new police department headquarters.