Montana company settles dispute over Puerto Rico grid work