Orioles add 2-time All-Star pitcher at trade deadline