A "landmark" deal has secured the first ever project financing for a UK gasification plant that derives its feedstock from refuse.