New bill on the verge of becoming law will require federal agencies to publicize details of its settlement agreements.