A string of four court setbacks this week highlighted growing judicial pushback on Trump’s use of executive power.