Permanent stadium park and ride agreed for racecourse