Upload & Sell: Off
The courthouse rules are primarily for securing the "process" more so than the building. They don't want interruptions, circus atmosphere, witness intimidation or tampering, etc. Had you flipped your laptop and begun streaming, or otherwise taken pictures, there's a good chance you'd be facing contempt or other charges.
There are essentially no rules against taking pictures of public buildings. There are provisions in the section of the Federal Code on espionage that govern how photography, etc., can be restricted but it's very, very uncommon.
That's not to say you will not attract some attention for doing so, or that you won't be confronted over your activities. Given that suspected/actual terrorists are found with photos, videos, etc., of targets or potential targets, and current images can reveal security provisions, etc., it shouldn't come as any surprise.
There's belief within a few members of the photo community that if you have a big enough camera you couldn't possibly be a terrorist.