Congress has agreed to require airliners and other civilian aircraft to carry systems that help pilots locate nearby aircraft. But lawmakers still have to resolve the provisions that apply to the military.