BLOOMINGTON, Ind. — The MacArthur Foundation’s Digital Media and Learning initiative has granted $400,000 to an associate professor in the Indiana University School of Education’s Learning Sciences program to study “digital badges,” a Web-based token of accomplishment, success or completion used often in online education.