We will change the law so that historical convictions for consensual gay sex with over-16s will be treated as spent and will not show up on criminal records checks.