A high degree of self government was granted the Faroese in 1948 , who have autonomy over most internal affairs while Denmark is responsible for justice , defense , and foreign affairs .