She became Britain’s first female Chancellor in July against a daunting backdrop of a sluggish economy and competing demands for public spending.