Investors at the end of the week were grappling with implications from legal rulings involving efforts to block most of President Donald Trump's tariffs.