Pedro Sánchez conceded defeat as the People's Party and Vox secured an absolute majority in the 350-seat parliament.