A ruling Wednesday that most of President Donald Trump’s tariffs are illegal was the latest roadblock courts have placed in the way of a sweeping second-term agenda that has been fueled largely by executive actions. Judges have also halted, at least temporarily, efforts by Trump to deport migrants …