Top state court upholds trust provision requiring beneficiary to be unmarried