Was it the same UK government that put Turing into jail?
No, because 1) Turing wasn’t jailed and 2) The Government doesn’t put people in jail; that’s the courts.
1. The legislature makes laws
2. The courts make judgements based on those laws
3. The police officers drag people into jail
All 3 are part of the government.