BP prepares to head to US court over Deepwater Horizon oil spill