A ransomware attack has hit the Virginia state Legislature’s IT branch and state agencies are helping with the recovery, a spokesperson for Gov. Ralph Northam said Monday.