A Gloucestershire council has been blasted for deciding to spend £50,000 on hiring an ecologist “responsible for the ocean”.