A Danish court has dismissed a legal case filed by citizens who accused Prime Minister Anders Fogh Rasmussen of violating the country 's constitution by sending troops to Iraq .