A ballot initiative to introduce ranked-choice voting and semi-open primaries in Washington, D.C. has passed, AP calls.