Greg Abbott and Rick Perry are not one in the same. Abbott is an ally of Ted Cruz.
Texas wants to sue the US to recover costs incurred by Texas dealing with illegal immigration, while at the same time Texas entices and rewards illegal immigrants with in-state tuition.