New Haven to avoid $3 million penalty for supporting transgender athletes