Court allows Jagan, Mopi to vote