Officially, Men in Black II received no funding, but some anti-smoking groups claim secret payments are regularly made by tobacco companies to filmmakers.
Both Men in Black (1997) and Men in Black II (2002) show Marlboro cigarettes.
Men in Black II was made after the 1998 Tobacco Master Settlement Agreement, originally between the four largest United States tobacco companies (including Marlboro manufacturer Philip Morris USA) and the attorneys general of 46 states, which included restrictions on youth targeting:
Generally, the participating manufacturers agree not to "take any action, directly or indirectly, to target Youth within any Settling State in the advertising, promotion or marketing of Tobacco Products, or take any action the primary purpose of which is to initiate, maintain or increase the incidence of Youth smoking within any Settling State." (§III(a))
According to Smoke Free Movies, the makers of Men in Black II didn't receive any payment for showing Marlboro, but they suggest there are secret agreements and payments made by tobacco companies to filmmakers.
From the article, "Superman II took $43,000 to push Marlboros at kids. Why would Men in Black II do the same thing for free?" (pdf):
Yet Hollywood keeps cranking out G, PG and PG13 fare that promotes smoking and specific tobacco brands. It looks just like paid product placement. Hollywood denies it.
Example? Men in Black II reportedly received $35 million in “promotional support” for flashing logos on-screen including Burger King ($15 million tied into special kid-meal deals) and Sprint, and for placing products from Ray-Ban, Mercedes-Benz and Hamilton (Swatch).
Of all products featured, we are asked to believe the world’s most heavily-advertised cigarette brand, Marlboro, appeared for free: no cash, no favors of any kind.
Why would MIIB executive producer Steven Spielberg indulge a director promoting the Marlboro brand to kids?
Why would director Barry Sonnenfeld feel compelled to show his cartoon-like characters gleefully smoking up a storm?
Why would Sony Pictures and other high-profile brands risk their reputations and millions of promotional dollars linking themselves to a movie that favors the most despised industry in the world — Big Tobacco?
They're also asking for films to certify no pay-offs at the end of films, with a statement:
No person or entity associated with this film received payment or anything of value, or entered into any agreement, in connection with the depiction of tobacco products.
I recently watched Gran Torino (2008), which showed unbranded smoking, and it carried such a certificate at the end of the credits.