The ruling is a major victory for a group of lawmakers who say they were terrorized by Trump and his mob on Jan. 6, 2021.