Philips has agreed to pay $479 million to resolve lawsuits brought by consumers over its recalled CPAP and other breathing machines.