Complex sentence: The governments of Spain and Morocco could work together to eliminate the loophole or improve conditions for workers, but instead allow conditions to deteriorate making a difficult job dangerous.
Split into simpler sentences: The governments of Spain and Morocco could work together to eliminate the loophole or improve conditions for workers. But instead allow conditions to deteriorate making a difficult job dangerous.