Boston’s record on crime and safety has drawn national attention in recent weeks, as Mayor Michelle Wu prepares to testify before Congress about the city’s policies on immigration enforcement.