Tens of thousands protected from homelessness thanks to £654 million funding boost