Italy have joined Australia and Germany in the semi-finals of the Fed Cup following a 3-1 success over the United States.