A proposed expansion of a Sydney marina has provoked an outcry among residents and is being opposed by a council in court.