Trump’s bravado tested as legal woes overlap with campaign