A North Carolina trial judge has upheld decisions by election officials to reject protests by the trailing candidate in a very close state Supreme Court election.