Labour is vowing to tackle “undignified corridor care” with plans to buy hundreds of beds in care homes and create 1,000 new care at home packages.