A controversial plan to chop a Sydney golf course in half for public parkland has been finalised by the NSW government with a compromise.