Framingham has landed $3.15 million in federal funding to renovate the former Marian High School into a community center.