Firearms officers on trial over police shootings will not be named during criminal proceedings, the home secretary has announced.