Disillusioned voters supported hard-right and nationalist parties in Thursday’s elections, marking a major test for the Labour government.