A for-profit company that won permission from a county board to open an online charter school in North Carolina cannot do so because only the State Board of Education is allowed to authorize such schools, a state judge ruled Friday.