Drugmaker GSK has agreed to pay up to 1.15 billion US dollars (£950 million) for a US-based biopharmaceutical company which is developing rare cancer therapies.