Great Britain's dressage team has qualified for the 2028 Olympics after winning silver at the FEI World Championships in Aachen, Germany.