Longtime Democratic Attorney General Bob Ferguson was elected governor of Washington on Tuesday, defeating former U.S. Rep.