Non-citizen admittance is at the discretion of the immigration officer and they can turn you away for just about any reason.
Either way, yes, this ruling wouldn’t change anything there.
The best option is not carrying devices across borders. Have whatever you need online somewhere. Securely encrypted, of course. Buy a device at destination. And discard it before return. That's accepted best practice for security-conscious firms. They'll provide devices and online storage.
If you must carry a device in transit, it ought to be plain-vanilla, with nothing sensitive on it. Again, security-conscious firms supply such devices for staff. And private individuals can just say that they're too concerned about theft to carry their primary devices.
That's really irrelevant. The question should be, "what data does the government think I have, and what evidence do they have that I have it?"
Crossing the border feels like "guilty until proven innocent", which completely goes against everything this country was founded on. If I'm not traveling with my wife and kids, I'll put up a much bigger fight at security check points. Yes, it's annoying to the people who have to check me, but they're being paid for it (well, not while there's a shutdown) so I don't feel too bad.
If they do have evidence of wrong doing, it shouldn't be hard to get a warrant. We should be following due process at the border, especially for American citizens.
A. Contiguous states - 12 nautical miles towards sea, one full state inwards
B. Alaska and Puerto Rico - 12 nautical miles towards sea, 3 nautical miles inwards
C. Archipelagic territories (including Hawaii) - 100 nautical miles towards sea, 1 nautical mile inwards
D. Airports - airport administrative zone