The men were sentenced to lengthy jail terms on charges they conspired with the United States to overthrow President Fidel Castro .