The agreement, included in a defense bill due to be voted on by the House on Friday and the Senate next week, seeks to strike a balance between the Pentagon’s concerns about fraud in the bonus system and lawmakers’ attempts to resolve a scandal that has hurt thousands of military veterans and sparked a public furor.