Realtor liable after buying house meant for client for himself, judge rules