An American federal judge dismissed a lawsuit against Carnival cruise company for doing business with Cuba, economic and tourist media reported.