In a stinging setback for Gov . Arnold Schwarzenegger of California , a judge on Thursday ordered the removal of a measure from the November ballot that would change the way legislative districts are drawn in the state .