Council wins rights of way battle with off-roaders