Does the two-year rule also apply to a J-1 holder’s J-2 dependents?

Yes. People who have entered or stayed in the U.S. as J-2 dependents are under the same restrictions as their respective J-1 holder. They are similarly relieved of the restriction if the J-1 holder obtains a J-1 waiver.