Topological to magnetically ordered quantum phase transition in antiferromagnetic spin ladders with long-range interactions