A judge partially ruled against a Los Altos resident who filed a racial discrimination lawsuit in 2018 against the city of Los Altos that claimed city employees treated him unfairly based on his race after he sought permits to make improvements on his home.