BP Must Live With Oil-Spill Settlement Terms, Court Rules