More than 3,000 patients with Illinois-issued ID cards will be able to buy medical marijuana legally for the first time Monday, according to the state official overseeing the pilot program.