LONDON — Inflation in the United Kingdom returned to the Bank of England’s target rate of 2 percent for the first time in nearly three years, official figures showed Wednesday, a development that has been seized on by the governing Conservative Party that its economic plan is “working” ahead of the July 4 election.