UK’s Conservatives lose two safe seats in historic by-election defeat