WARSAW/WASHINGTON (Reuters) - Hewlett-Packard agreed to pay $108 million to resolve wide-ranging U.S. government investigations into whether some of its foreign units bribed government officials to obtain lucrative contracts, U.S. officials said on Wednesday.