Huntington Beach ordered to pay affordable housing group $3.5 million in legal fees