WASHINGTON—The Supreme Court wrestled Wednesday with whether a federal law intended to promote labor harmony actually prohibits employers from smoothing the way for union organizing drives.

The case involves so-called neutrality agreements, in which an employer generally agrees not to object to a union's organizing campaign and may provide employee lists or other assistance. In return, a union may, for example, agree to refrain from...