Arizona has attracted more than $3.6 million of donations to help defend its law to crack down on illegal immigration, with one whopping contribution—and thousands of smaller ones—from out of state.

Timothy Mellon, an heir to a Pittsburgh steel and banking dynasty, has donated $1.5 million to a legal-defense fund established by Arizona Gov. Jan Brewer, according to the governor's office.

Mr....