A residential developer wrongly tapped into certain excess insurance, a California federal judge ruled Thursday, finding that the $3.2 million its primary insurer spent on defense costs in underlying construction defect litigation didn’t count toward triggering a $10 million excess policy…