Germany knew that this could bring the US into the war, and tried to talk Mexico into an alliance against the US if that happened in exchange for money and arms to try and recapture Texas, New Mexico, and Arizona.
Mexico didn't think it was worthwhile but it pissed everyone off