The president raised the possibility of withholding aid to California unless the state changes its water policy.