Victory for 'basic democracy' as judge orders New York to reinstate Sanders, Yang and others to 2020 primary ballot