Topological Devil's staircase in atomic two-leg ladders