The opening of Donald Trump’s first criminal trial on Monday will put to the test a defense strategy his lawyers have been honing for a year — a confrontational gambit that has angered the judge and could cost the presidential candidate dearly when it comes to a verdict.