A backlog of dozens of Boston-area first-degree murder cases built up in the Massachusetts justice system during the COVID-19 public health emergency, in some cases leaving cases pending for several years before trial, a top court official told lawmakers on Tuesday.