The lawyer for a former Massachusetts state senator convicted of tax and pandemic aid fraud was scolded by a federal judge on Friday for filing a sentencing memo at 3:30 a.m. on the day of the hearing, then showing up late to court, forcing a postponement.