Paramount reaches historic settlement with states, clearing way for WBD deal