There are already some protections regarding personnel matters that do include Police same as other professions. I don't see the need for this legislation. There has to be some level of transparency in order to maintain public confidence, this is not helping it.
As far as bringing up irrelevent issues in a trial that's what the purpose of having lawyers on both sides of the court and objections are for.