Britain's economy expanded slightly in August after shrinking the previous month, official data showed Thursday, highlighting the challenges faced by the Labour government ahead of its annual budget.