Efforts to hold Donald Trump accountable are testing the legal system in unprecedented ways