A family-run company that spent $7.3 million on a house overlooking San Francisco Bay may have used it for business and so the family’s trust could be entitled to a $1 million tax refund for related operating losses, a Florida federal judge said.