Steve Rogers' first real action in World War II is when he rescues 400 soldiers from HYDRA against Colonel Philips' orders. Subverted to a degree when, after returning the men to their base successfully, Steve voluntarily surrendered himself for disciplinary action, only to have Phillips say, "I don't think that will be necessary."
Agent Peggy Carter decides to help Steve to get into the HYDRA base, at the risk of her career. Likewise with Howard Stark, who flew the plane into enemy lines. Though as he was a civilian, not to mention a millionaire private contractor, he technically didn't have any orders to disobey, and had the least to lose.
The Starks have a habit of stepping in where the military won't. Howard's son, Tony flies to Gulmira to handle the terrorists personally even though the US forces in the area hadn't been given the go ahead. A soldier monitoring the situation says they weren't given the go-ahead because the terrorists were using human shields. Iron Man is unimpressed by cowards who use human shields.
Crimson Tide is all about this. Lt. Commander Hunter (played by Denzel Washington) actually commits mutiny and seizes control of the USS Alabama in the name of preventing nuclear war. Though Hunter insists throughout that it was not a mutiny, he did everything "by the book". It was the Captain who disobeyed proper procedure, by not holding the launch countdown pending retrieval of the message, and attempting to relieve Hunter for fulfilling his role, the very reason why there's two sets of keys. As far as Hunter sees it, his actions were all Lawful as well as Good.
GI Joe The Rise Of Cobra: General Hawk first subverted his orders by telling the team that they could violate the spirit of the orders without technically violating the letter and later launched an unsanctioned attack on Cobra's Arctic base after the organization was ordered disbanded.
In Hellboy II: The Golden Army, Liz Sherman and Abe Sapien go against orders to take a dying Hellboy to Prince Nuada's realm in order to save his life. Johann Kraus intercepts them, seemingly intending to either reason with them or arrest them for disobeying orders, but instead joins them.
In I, Robot: Sonny, a advanced robot who is able to think independently of the three laws, agrees that the actions of the main villain are perfectly rational and that their logic is sound in accordance with the laws of robotics; however, he chooses to go against their plan because it "just seems too heartless."
Sartana in Machete could have supplied the header quote if there wasn't already one:
"Well, there's the law and there's what's right. I'm gonna do what's right."
In The Matrix Reloaded, Neo realises Trinity will be killed by an Agent, and insists she stays out of the matrix; however, despite his pleading, Trinity states "[She refuses] to sit and watch [Neo] die", and does so anyway.
The primary reason Jason keeps the evidence from the police in Mystery Team.
National Treasure is all about a guy who steals the Declaration of Independence so someone else can't. In the sequel, he kidnaps the President, but unlike the first movie, it has absolutely nothing to do with "saving the country" or anything; Gates just wants to find El Dorado and clear Thomas Gates' name of treason.
The Phantom Menace has Qui-Gon Jinn, who will defy the council to train Anakin because he believes the boy is the "Chosen One." Never mind how bad that went. He was sure he was doing the right thing at the time.
It should be noted that Qui-Gon was right, but not in the way anyone expected.
In the film version of The Running Man, Ben Richards is ordered to fire upon a food riot. When he refuses, the crew overpowers him and carries out the order. Richards is then blamed by the state and becomes known as the "Butcher of Bakersfield".
Has a scene where Sergeant Zim is arguing with his superior officer to let him join the war. Being a boot camp instructor, he won't get anywhere near the front lines unless he "busts himself back to a Private". Rico bursts in, asking Zim to cancel his resignation so that he too can join the war effort. Zim shows him the resignation documents, and after a silent nod from his superior officer, rips them up and thus gives both of them what they want.
The end of movie shows that Zim did end up busting himself down to private, though that's probably a subversion, since he was actually following the rules in that case. And it turns out to be the best decision as it was Zim who captured the Brain Bug.
Kirk and friends steal the Enterprise and defy Starfleet orders to not return to the Genesis planet in order to rescue Spock.
Sulu: The word, sir? Kirk: The word is "No". I am therefore going anyway.
Kirk's eventual "punishment" for this is to be demoted in rank to Captain - which is actually what he had wanted all along, and is Starfleet's way of rewarding him for what turned out to be heroic actions. As it turned out, they were glad to admit he was right.
Captain Jean-Luc Picard disobeys the orders of Starfleet Command and goes to the front lines to engage the Borg.
Picard: What I am about to do is a direct violation of our orders. If anyone objects, please do so now. It will be noted in my log. Data: Captain, I believe I speak for everyone here, sir, when I say... "to Hell with our orders".
Which creates a sort-of Call Back to the previous entry, given that Data is an android who's only recently begun to seriously express emotions and is thus very similar to Spock, making both their contexts both unusual and poignant.
Star Trek: Insurrection, the entire plot revolved around this trope so much that their rebelling against the rules is actually part of the title. The thing which sets the plot off is Data, who was assigned on what he thought was a survey mission, and attacked to keep the truth hidden when he discovered what was really going on. This damage kicked him into a kind of basic mode of functioning, probably designed to keep him from being used as a weapon, wherein his program directed him to do the right thing, regardless of whatever else was going on. Essentially, he was programmed with a Screw the Rules, I'm Doing What's Right! default mode.
Star Trek Into Darkness starts with Kirk and crew violating the Prime Directive to save an alien tribe from a volcano (possibly, it's a little unclear if that was the big violation, or if letting the natives see the Enterprise during a rescue of Spock. Either way, writing a misleading report to cover it up afterwards wasn't Kirk's best decision). Subverted in that Kirk ends up losing his command as a result. This is later inverted when Admiral Marcus gives Kirk the Enterprise back and orders him to fire a payload of advanced photon torpedoes from a distance at John Harrison, who was in hiding in Klingon Space( as part of Marcus' ploy to instigate a war between the Federation and the Klingons). After much soul-searching, Kirk decides "Screw the Admiral's questionable orders, I'm doing what's right" and informs his crew that they are going to arrest Harrison and bring him to Earth to stand trial.
In the previous movie, Kirk treated nearly every order as a suggestion. The fact that they saved the Earth and perhaps every planet in the Federation of course means he's rewarded rather than punished.
Street Fighter: "Troopers, I just received new orders. Our superiors say the war is cancelled. We can all go home. Bison is getting paid off for his crimes, and our friends who have died here will have died for nothing. But, we can all go home. Meanwhile, ideals like peace, freedom, and justice, they get packed up. But, we can all go home. Well, I'm not going home. I'm gonna get on my boat, and I'm going up river, and I'm going to kick that son of a bitch Bison's ass so hard that the next Bison wannabe is gonna feel it! Now, who wants to go home... and who wants to go with me?"
In the video game adaptation, failing to complete the assault on the compound gets Guile court-martialed.
In Tears of the Sun, the SEAL Team engages the Nigerian rebels after watching the rebels massacre a village, not to mention trying to extract as many indigenous refugees from the conflict zone as possible, against direct orders from their command center.
Heimdall in Thor is ordered by the temporary king Loki to not open the Bifrost to anyone. When the Warriors Three and Sif decide to break the rules and go anyways and tell this to Heimdall, the latter simply replies with a "Good!" and walks away. After readying the Bifrost, of course.
In Transformers: Revenge of the Fallen, Lennox and the other NEST soldiers fly off not only to deliver Optimus Prime to Egypt, but actually take the Obstructive Bureaucrat with them so they can push him out of the plane on the way (with the Parachute, unfortunately). The latter was presumably because it would take him longer to rat them out than if they left him at the base. And because Lennox was having way too much fun screwing with the guy.
Batman Forever: In the wake of Stickley's "apparent" suicide,* where he was actually murdered by The Riddler Bruce Wayne granted full death benefits to his family, even though suicide disqualified him from those benefits. He likely knew something was fishy.
The Dark Knight Rises: Officer John Blake often goes against his superiors because of them making questionable decisions in handling Bane's attacks on Gotham. He rescues Commissioner Gordon and gets inducted into the Major Crimes Unit, and his decision to help Gotham no matter what others say comes to a head when it becomes the target of an imminent nuclear explosion.
Deconstructed in S.W.A.T., where it's shown what happens when a stunt like this doesn't go as planned. In the opening scene of the movie, the audience sees a bank robbery that quickly turns into a tense hostage situation, and they're introduced to respected SWAT officer Brian Gamble, who disobeys a "hold" order to save one of the hostages from certain death while his superiors insist on negotiating with the robbers. It's the kind of stunt that practically all action movies depict heroically — except Gamble screws up and accidentally shoots the hostage, causing a PR nightmare for the police department, destroying Gamble's relationship with his partner, and leading to his expulsion from the force, whereupon he goes rogue and becomes a bitter career criminal. Turns out Gamble's actually the villain of the movie. Oops.
Bad Boys 2: Marcus's sister is kidnapped by the drug lord and taken to Cuba. Mike and Marcus intend to go rescue her themselves, but are then aided by a loose-knit group of law enforcement agents who decide to risk violating international law.
DEA Agent Snell: We don't know you, but you look like you're about to do something stupid. I'm in.
The White Rose activists in the fact-based Sophie Scholl: The Final Days, which details the arrest and interrogation of a group of German anti-fascists in 1943. The titular Sophie basically quotes this trope, albeit more eloquently, when her interrogator admonishes her for breaking the law.
The Becket brothers decide to save a fishing trawler rather than guard a coast line from a Kaiju attack, defying orders. This ends up getting one of them killed.
For that matter, Pentecost is using the last of his Jaeger funding to close the Rift, which is not technically what he's authorized for.
The Hansens decide to preemptively intervene and assist Cherno Alpha during the Battle of Hong Kong against Pentecost's orders. This nearly got them killed because it was a feint by the kaiju to lure them into an EMP blast.
Upldr has the main character going rogue to break all of the ethical rules to finish his project. In his mind, he thought he was doing the right thing.
R.I.P.D.: Despite being suspended for the fiasco with Fat Elvis, Nick and Roy continue working their leads on the gold.
Alien Nation: George Francisco is a by-the-book Newcomer police detective...until he finds out some of his race are manufacturing a narcotic called jabroka. Then he sets out to stop them by any means necessary; his philosophy becomes "Fuck procedure."
Dallas Buyers Club: had people with HIV played by the strict rules and procedures of FDA, they would have all ended up dead.
In an Establishing Character Moment in the beginning of the film, Maverick aborts his landing to help the badly-shaken Cougar land his plane even though he's low on fuel himself. He's chewed out for this by Commander Johnson, the carrier's CAG, but Johnson can't do anything else because he's been told to send his top flight crew to Top Gun and Cougar just quit the squadron.
Way later in the film, Viper illegally reveals the classified true story of how Maverick's dad died because Mav needed to hear it. Viper acknowledges the illegality of doing so.
Red Tails has a comparatively minor but very heartwarming example. Early in the film the Tuskegee Airmen are stopped from entering the whites-only officers' club. After they fly escort to a bomber wing without losing a single escortee, they go back to the officers' club again and are barred again, only for a group of bomber officers to tell the racist to screw himself and invite the Airmen inside so they can buy them a round.
Zig-Zagged in Paths of Glory, set in WWI trench warfare. During an all-out attack 'B' Company can't get out of their trenches due to a hail of bullets. General Mireau then orders for the artillery to fire on his own troops to force them out. His immediate subordinates demand for this order to be given in writing. In the end, the general gets a free pass for his illegal order, and the troops are court-martialled for failing to go over the top.
Lasseter helps Mike, despite knowing that what she's doing could qualify as treason.
Her assistant, Petey, is initially threatened with treason charges of his own by Yates into going along with him, but ultimately chooses to turn on him, refusing to initiate a drone strike on Yates' orders, with a "Fuck you!" for good measure.