A US federal judge has granted Paramount's settlement agreement with 12 states that sued over the company's takeover of Warner Bros.