Government spending rose as benefit payments offset the ending of support for energy bills.