Maliki gives up Iraq PM job to rival