Roma wins derby and qualifies for Champions League