Space technology is very expensive and needs a colossal investment. Meanwhile we need much money to cope with urgent issues on Earth for example pollution, education and health services, etc. As you know, nowadays our environment has been rapidly degraded. Our life is threatened by natural disasters such as flood, rises in sea levels, drought. Unless government invests more money in recycling rabbits, using environmentally friendly energies… in order to curb greenhouse gas emissions, our planet will become uninhabitable place. Furthermore, some scientists believe that once explored a new planet where human being could live we can send our people from Earth to this planet. So we can reduce population pressures on earth. But I do think that if on Earth we can not tackle existing issues we will have to face the same things in a new environment.
Secondly, sending machines and people to explore other planets seems risky. We've heard about the crash or failure of some satellites in the space. Theses accidents, besides the fact that they cost a lot of money, have been causing orbit debris that make our universe become polluted.
In conclusion, I think that government should give priority to resolve problems on earth to make our environment better. And they can collaborate with other countries to develop space technology to reduce huge costs.