The Japanese parliament has approved a bill to relax imperial succession rules, amid concerns over the dwindling size of the imperial family.