BALTIMORE – A federal judge overturned a Maryland law that would have required Wal-Mart Stores Inc. to spend more on employee health care.