The telecoms giant has agreed to pay to resolve bribery allegations, the US justice department says.