Case may upend Republican presidential primary currently dominated by Trump; felony charges raise prospect of yearslong prison sentence