Tesco is giving away food about to expire in a bid to cut waste and hit net-zero targets, the supermarket said.