More than 2,500 demonstrators gather in Huntington Beach after city vows legal action against state’s order to close beaches